package com.yuxinmuyu.sports_management.bean.entiy;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sports_apply")
@NoArgsConstructor
@AllArgsConstructor
public class SportsApply implements Serializable {

    @ApiModelProperty("报名单ID")
    @TableId(value = "ApplyID",type = IdType.AUTO)
    private Integer applyID;

    @ApiModelProperty("学期ID")
    private String yearTermID;

    @ApiModelProperty("项目ID")
    private Integer sportsID;

    @ApiModelProperty("报名人ID")
    private String userID;

    @ApiModelProperty("报名状态")
    private Integer flag;

    @ApiModelProperty("操作时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastDate;

    @ApiModelProperty("操作人")
    private String operator;

    @ApiModelProperty("类型")
    private Integer type;
}
